package com.huashizhaoxi.lionapp.service;

import com.huashizhaoxi.lionapp.entity.FruitItem;
import com.huashizhaoxi.lionapp.entity.FruitKind;

import java.util.List;

public interface FruitService {
    List<FruitKind> getFruitKind();

    List<FruitItem> getFruitItem();

    List<FruitItem> getFruitItemByKind(int fruitKindId);

    List<FruitKind> getValidFruitKind();

    int addFruitKind(FruitKind fruitKind);

    int addFruitItem(FruitItem fruitItem);

    int deleteFruitItem(int id);

    void deleteFruitItemByKindId(int id);

    void deleteFruitKind(int id);

    void reviseFruitKind(FruitKind fruitKind);

    void reviseFruitItem(FruitItem fruitItem);
}
